// Thud - a dynamic object-oriented language
// Copyright (C) 2009,2010 David H. Hovemeyer <david.hovemeyer@gmail.com>

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// 
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// 
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

/*
 * ParserException.h
 *
 *  Created on: Dec 29, 2009
 *      Author: dhovemey
 */

#ifndef PARSEREXCEPTION_H_
#define PARSEREXCEPTION_H_

#include "fe/FrontEndException.h"

/**
 * Exception indicating a parse error.
 */
class ParserException : public FrontEndException {
private:
	ParserException& operator=(const ParserException &);

public:
	/**
	 * Constructor.
	 *
	 * @param msg message describing the error
	 * @param loc the source location of the error
	 */
	ParserException(const std::wstring &msg, const Location &loc);

	/**
	 * Copy constructor.
	 *
	 * @param other another ParserException object
	 */
	ParserException(const ParserException &other);

	/** Destructor. */
	virtual ~ParserException();
};

#endif /* PARSEREXCEPTION_H_ */
